package com.bosssoft.rbac.service;

import com.bosssoft.rbac.domain.SysMenu;
import com.bosssoft.rbac.domain.SysRolePrivilege;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bosssoft.rbac.model.RolePrivilegesParam;

import java.util.List;

/**
 * @ProjectName boss-rbac
 * @Description TODO
 * @author MaYunFei
 * @time 2022/7/5 19:26
 */
public interface SysRolePrivilegeService extends IService<SysRolePrivilege>{

    /**
     * 查询角色的权限
     * @param roleId
     * @return
     */
    List<SysMenu> findSysMenuAndPrivileges(Long roleId);



    /**
     * 给角色授权权限
     * @param rolePrivilegesParam
     * @return
     */
    boolean grantPrivileges(RolePrivilegesParam rolePrivilegesParam);
}

